﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{


    protected void Page_Load(object sender, EventArgs e)
    {
        //this.tb_msg.Visible = false;

        //if (!IsPostBack)
        //{ 
        //    //加入姓别
        //    this.tb_sex.Items.Add(new ListItem("男", "1"));
        //    this.tb_sex.Items.Add(new ListItem("女", "0"));

        //}


        //if (string.IsNullOrEmpty(cyly.getSystemLogin()))
        //    this.tb_ifarm.Text = "<script>setTimeout(function(){openWithIframe('你需要登录之后才能操作','login.aspx',400,200,1);},700);</script>";
    
    }

    protected void Submit1_ServerClick(object sender, EventArgs e)
    {
        string Url = "";
        int isSendEmail = 0;
        //if (this.tb_isSendEmail.Checked)
        //    isSendEmail = 1;
        //int isSaveData = 0;
        //if (this.tb_isSaveData.Checked)
        //    isSaveData = 1;
        //int NextPage=0;

        //Url = "http://jiaoyou.qq.com/cgi-bin/search?sex=" + this.tb_sex.Text.ToString() + "&agefrom=" + this.tb_agefrom.Text + "&ageto=" + this.tb_ageto.Text + "&place=00" + this.tb_city.Value + "&city=" + this.tb_city.Value + "00&SimpleSearch=QQ%BD%BB%D3%D1%CB%D1%CB%F7";

        

        //if (!string.IsNullOrEmpty(Url))
        //{
        //    //列表采集窗体

        //    this.tb_ifarm.Text = "<iframe scrolling=no id='zj_window' src='getQQ.aspx?url=" + HttpContext.Current.Server.UrlEncode(Url) + "&page=" + NextPage + "&isSendEmail=" + isSendEmail + "&isSaveData=" + isSaveData + "' width='100%' height=500 border=1 frameborder=0></iframe>";

        //}
        //else
        //{
        //    this.tb_msg.Visible = true;
        //    this.tb_msg.InnerHtml = "请输入搜索条件...";
        
        //}
    }


    protected void Button1_ServerClick(object sender, EventArgs e)
    {
       // this.tb_ifarm.Text = "准备就绪...";
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
       // SessionCustom.Del("UserName");
       // Response.Redirect("default.aspx");
    }




}
